import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
const Main = () => import('@/Main.vue')
const HomePage = () => import('@/views/home/HomePage.vue')
const IndexPage = () => import('@/views/qingcheng/IndexPage.vue')
const Detail = () => import('@/views/qingcheng/Detail.vue')
const StrategyIndex = () => import('@/views/strategy/StrategyIndex.vue')
const ColorfulPage = () => import('@/views/colorful/ColorfulPage.vue')
const HealthPage = () => import('@/views/health/HealthPage.vue')
const CountryPage = () => import('@/views/beautiful/CountryPage.vue')
const DirectProduct = () => import('@/views/directProduct/HomePage.vue')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main,
      redirect: '/HomePage',
      children: [
        {
          path: '/HomePage',
          name: 'HomePage',
          component: HomePage,
          meta: {
            label: '首页'
          }
        },
        {
          path: '/IndexPage',
          name: 'IndexPage',
          component: IndexPage,
          meta: {
            label: '青城风光首页'
          }
        },
        {
          path: '/Detail',
          name: 'Detail',
          component: Detail,
          meta: {
            label: '青城风光-详情'
          }
        },
        {
          path: '/StrategyIndex',
          name: 'StrategyIndex',
          component: StrategyIndex,
          meta: {
            label: '青城攻略'
          }
        },
        {
          path: '/ColorfulPage',
          name: 'ColorfulPage',
          component: ColorfulPage,
          meta: {
            label: '多彩青城-首页'
          }
        },
        {
          path: '/HealthPage',
          name: 'HealthPage',
          component: HealthPage,
          meta: {
            label: '青城养生-首页'
          }
        },
        {
          path: '/CountryPage',
          name: 'CountryPage',
          component: CountryPage,
          meta: {
            label: '美丽乡村-首页'
          }
        },
        {
          path: '/DirectProduct',
          name: 'DirectProduct',
          component: DirectProduct,
          meta: {
            label: '美丽乡村-首页'
          }
        }
      ]
    }
  ]
})
